cmake_minimum_required(VERSION 2.8.3)
project(cmd_vel_pubber)

## Find catkin macros and libraries
find_package(catkin REQUIRED COMPONENTS roscpp geometry_msgs joy)

include_directories(${catkin_INCLUDE_DIRS})

catkin_package(
  INCLUDE_DIRS
  CATKIN_DEPENDS roscpp geometry_msgs joy
  DEPENDS
)

###########
## Build ##
###########

add_executable(joy2cmd_vel src/joy2cmd_vel.cpp)
target_link_libraries(joy2cmd_vel ${catkin_LIBRARIES})

#############
## Install ##
#############

## Mark executable scripts (Python etc.) for installation
install(PROGRAMS
  scripts/teleop_key
  DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)


## Mark all other useful stuff for installation
install(DIRECTORY launch
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
